package com.example.day2201;

/**
 * @author Lenovo
 */
public class Converter {
    int convert(String s) {
        return 0;
    }
}
public class ConverterDemo {
    public static void main(String[] args){
        useConverter(s -> Integer.parseInt(s));

        //引用类方法
        useConverter(Integer::parseInt);
    }
    public static void useConverter(Converter converter){
        int i = converter.convert("123");
        System.out.println(i);
    }
}
